# name : SAS do until ()... end, for set
# key : loop.do.until.for.set.
# contributor: Shuguang Sun
# --
do until (${1:last.id});
set ${2:din};
by id;
count = sum(count, 1);
sum = sum(sum, var);
$0
end;

mean = sum / count;